﻿using AutoMapper;
using B.S.BasicData.Api.Read.Application.Command.Menu;
using B.S.BasicData.Api.Read.Application.Command.RBAC;
using B.S.BasicData.Api.Read.Application.Command.RoleMenu;
using B.S.BasicData.Api.Read.Application.Command.ShenPi;
using B.S.BasicData.Api.Read.Application.Command.User;
using B.S.BasicData.Api.Read.DTO;
using B.S.BasicData.Domian.Entities.Account;
using B.S.BasicData.Domian.Entities.Menu;
using B.S.BasicData.Domian.Entities.RBAC;
using B.S.BasicData.Domian.Entities.shenpi;

namespace B.S.BasicData.Api.Read
{
    public class MapperProFile:Profile
    {
        public MapperProFile()
        {
            CreateMap<AccountModel,CreateCmmand>().ReverseMap();
            CreateMap<DelUserCommand,AccountModel>().ReverseMap();
            CreateMap<UpdateCommand,AccountModel>().ReverseMap();
            CreateMap<GetListDTO,CityModel>().ReverseMap();
            CreateMap<ShowDTO, AccountModel>().ReverseMap();




            CreateMap<RoleModel, CreateUserCommand>().ReverseMap();
            CreateMap<UserModel,DelUserCommand>().ReverseMap();
            CreateMap<RoleModel, UpdateUserCommand>().ReverseMap();
            CreateMap<UserModel,GetUserDTO>().ReverseMap();
            CreateMap<FenpeiCommand,UserRoleModel>().ReverseMap();



            CreateMap<MenuModel, MenuCrreateCommand>().ReverseMap();
            CreateMap<MenuModel, UpdateMenuCommand>().ReverseMap();

            CreateMap<RoleMenuTreeDTO, RoleMenuCommand>().ReverseMap();


            CreateMap<LeaveModel, ShenpiDelCommand>().ReverseMap();
            CreateMap<LeaveModel, ShenpiCreateCommand>().ReverseMap();
            CreateMap<LeaveModel, ShenpiUpdateCommand>().ReverseMap();


        }
    }
}
